package bigraph;

import org.eclipse.gef.EditPartViewer;
import org.eclipse.gef.dnd.TemplateTransferDropTargetListener;
import org.eclipse.gef.requests.CreationFactory;

import bigraph.model.NodeCreationFactory;


public class MyTemplateTransferDropTargetListener extends TemplateTransferDropTargetListener {

	public MyTemplateTransferDropTargetListener(EditPartViewer viewer) {
	     super(viewer);
	}
	@Override
	protected CreationFactory getFactory(Object template) {
	     return new NodeCreationFactory((Class<?>)template);
	}

	
}

